<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
        字符串:引号.
            1.特殊字符,用转义符
            2.length 获取字符串的长度(有多少个字符)
            3.+可以进行字符串的拼接
            4.字符串拼接其它数据类型后还是字符串
            5.字符串和变量拼接:引引加加

        */

        let address = '郑\'州\n河南';

        let star = '周杰伦';
        let music = '稻香';
        console.log('周董的名字有几个字' + star.length);
        console.log('周董的歌有几个字' + music.length);

        let subject = '电竞';
        let subject1 = 'theshy';
        console.log(subject + subject1);

        let hero = prompt('请输入你的英雄');
        console.log(typeof hero)
        console.log('您的英雄是' + hero+'这个小辣鸡吗')
    </script>
</body>
</html>